public class Exer3_7_8 {
    public static void main(String[] args) {
        int count = 0, i = 1;
        while (i <= 10000) {
            i++;
            if (i % 7 != 0) {
                count++;
            }
        }
        System.out.println("1到10000内不能被7整除的数的个数为：" + count);
    }
}
